//  EveSession.h
//  EVEMonX
//
//  Copyright Andrew Scherkus 2006. All rights reserved.

#import <Cocoa/Cocoa.h>

@interface EveSession : NSObject
{
    NSString *currentlyTraining_;
    int targetLevel_;
    NSString *timeLeft_;
    NSString *spDone_;
    NSNumber *percentageComplete_;
    
    int spTarget_;
    double spPerSecond_;
    
    NSDate *completionDate_;
    NSTimer *timeLeftTimer_;
}
+ (NSDate*)calculateCompletionDate:(NSString *)timeLeft;

- (NSString*)getURL:(NSString*) urlString referer:(NSString*) refString;
- (NSString*)updateSessionData:(NSString*)username password:(NSString*)password;
- (void)updateStatistics;

- (NSString*)currentlyTraining;
- (void)setCurrentlyTraining:(NSString*) skillName;

- (int)targetLevel;
- (void)setTargetLevel:(int) level;

- (NSString*)timeLeft;
- (void)setTimeLeft:(NSString*) time;
- (void)updateTimeLeft:(NSTimeInterval) timeLeft;

- (NSString*)spDone;
- (void)setSpDone:(NSString*) sp;
- (void)updateSpDone:(NSTimeInterval) timeLeft;

- (NSNumber*)percentageComplete;
- (void)setPercentageComplete:(NSNumber*) pct;
- (BOOL)percentageCompleteEnabled;
- (void)updatePercentageComplete:(NSTimeInterval) timeLeft;

@end
